package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter
public class Car {
    private Long id;

    private Customer customer;//客户
    private String brand;

    private String model;

    private String plateNumber;

    private Long gasDisplacement;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date purchaseDate;//购置日期

    private String remarks; //备注

    private String valuation;//市场估值

    private boolean category;//汽车分类

    private Integer size;//车载大小

}